<?php
class factory {
	private static $classpath = "classes";
	public static function create($nomClasse) {
		if (include_once self::$classpath."/$nomClasse.php") {                                 
			/* create instance */
			return new $nomClasse;                                                    
		} else {                                                                     
			return false;                                                                                                                                                 
		}
	}
}
?>